package com.tiantian.poi;

/**
 * poi表头对象
 * 
 * @author 王强
 * @time 2015年1月7日 上午9:11:26
 */
public class PoiColumn {
	public static final int COLUMN_FIXED_WIDTH = 100;
	private String name;
	private int width;
	//跨行，默认为1
	private int rowspan;
	//跨列，默认为1
	private int column;

	public PoiColumn(String name) {
		this(name, COLUMN_FIXED_WIDTH);
	}

	public PoiColumn(String name, int width) {
		this(name, width, 1, 1);
	}

	public PoiColumn(String name, int width, int rowspan, int column) {
		super();
		this.name = name;
		this.width = width;
		this.rowspan = rowspan;
		this.column = column;
	}

	public String getName() {
		return name;
	}

	public PoiColumn setName(String name) {
		this.name = name;
		return this;
	}

	public int getWidth() {
		return width;
	}

	public PoiColumn setWidth(int width) {
		this.width = width;
		return this;
	}

	public int getRowspan() {
		return rowspan;
	}

	public PoiColumn setRowspan(int rowspan) {
		this.rowspan = rowspan;
		return this;
	}

	public int getColumn() {
		return column;
	}

	public PoiColumn setColumn(int column) {
		this.column = column;
		return this;
	}

}
